package testpackage;

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class familytree {

	// Space for 100 families
	static int[] array = new int[100];
	static boolean check = false;
	private static String input;

	public static void main(String[] args) {

			Family newFamily;
			Person mother, father, aChild;
			String name;
			char gender;
			int age;

			try {
				BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
				
				System.out.println("Welcome to my family tree program. For HELP write 'help'");
				
				for (int i = 1 ; i < 100 && check == false ; i ++){
									
				while ((input = bf.readLine()) != null && !input.equals("stop")) {
					System.out.println(input);
					
				}
				while ((input.isEmpty())) {
					System.out.println("to quit write 'stop' for instructions write 'help'");
				}
				while ((input.equals("stop"))) {
					System.out.println("byebye");
					check = true;
					bf.close();
				}
					
				}	
					
					
					
				/*while (input.equals("add")) {
					System.out.println("type 'm' for mother, 'f' for father or 'c' for a child:");
					while (input.equals("m")) {
						input = bf.readLine();
					}
					while (input.equals("f")) {
						input = bf.readLine();
					}
					while (input.equals("c")) {
						input = bf.readLine();
					}
					while (input.equals("help")) {
						System.out.println("Display the help function");
					}

				}
				*/

			} catch (Exception e) {
				System.out.println(e.toString());
			

		}

	}

}
